package main

import "sync"

func on(name string) {
	println("xxxx:", name)
}
func one2() {
	println("one2")
}
func main() {
	var one sync.Once
	one.Do(func() {
		on("name")
	})
	one.Do(one2)
	one.Do(one2)
}
